<template>
  <div id="app">
    <div class="content">
      <TopVue />
      <CenterVue v-if="isShow" />
      <BottomVue v-if="isShow" />
      <router-view />
    </div>
  </div>
</template>
<script>
import TopVue from './components/topVue/index.vue'
import CenterVue from './components/centerVue/index.vue'
import BottomVue from './components/bottomVue/index.vue'
export default {
  components: {
    TopVue,
    CenterVue,
    BottomVue
  },
  data() {
    return {
      isShow: false
    }
  },
  watch: {
    $route(to, from) {
      if (to.path == '/') {
        this.isShow = false
      } else {
        this.isShow = true
      }
    }
  }
}
</script>
<style lang="scss">
@import './assets/fonts.css';
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  width: 100%;
  height: 100%;
}
* {
  padding: 0;
  margin: 0;
}
.content {
  width: 100vw;
  height: 100vh;
  position: relative;
  z-index: 999;
}
.map-div-panel {
  color: #fff;
  .panel-info {
    position: relative;
    left: 0%;
    img {
      display: block;
      width: 100%;
      height: 15vh;
    }
    .title {
      height: 20%;
      width: 100%;
      box-sizing: border-box;
      position: absolute;
      top: 18px;
      left: 5%;
      font-family: 'YouSheBiaoTiHei';
      font-weight: 400;
      display: flex;
      align-items: center;
      padding-left: 0.5vh;
      box-sizing: border-box;
      justify-content: space-around;

      .drop {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        display: block;
      }
      .cccDrop {
        background: #ccc;
      }
      .greenDrop {
        background: green;
      }
    }
    .content {
      width: 100%;
      height: 80%;
      position: absolute;
      left: 3%;
      top: 36%;
      margin: 0 auto;
      font-family: 'SourceHanSansCN';
      color: #b2ecff;
      box-sizing: border-box;
      // border: 1px solid aqua;
      .flex {
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: center;
        span {
          display: block;
          text-align: left;
          width: 100%;
        }
      }
      .flex-column {
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        span {
          display: block;
          text-align: left;
          width: 100%;
        }
      }
      .time {
        width: 100%;
        margin: 0 auto;
        font-size: 1.4vh;
      }
    }
  }
}
</style>
